package cn.tj212.xiaoyin.wechat.wxapi.vo;

import java.io.UnsupportedEncodingException;

/**
 * 账号粉丝信息
 */
public class AccountFans {

    private String openId;//每个用户都有一个唯一的
    private Integer subscribeStatus;//订阅状态
    private String subscribeTime;//订阅时间
    private byte[] nickname;//二进制保存emoji表情
    private String nicknameStr;//昵称显示
    private String wxid;//微信号
    private Integer gender;//性别：0-女，1-男，2-未知
    private String language;
    private String country;
    private String province;
    private String city;
    private String headimgurl;//头像链接
    private String remark;//备注

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public Integer getSubscribeStatus() {
        return subscribeStatus;
    }

    public void setSubscribeStatus(Integer subscribeStatus) {
        this.subscribeStatus = subscribeStatus;
    }

    public String getSubscribeTime() {
        return subscribeTime;
    }

    public void setSubscribeTime(String subscribeTime) {
        this.subscribeTime = subscribeTime;
    }

    public byte[] getNickname() {
        return nickname;
    }

    public void setNickname(byte[] nickname) {
        this.nickname = nickname;
    }

    public String getNicknameStr() {
        if (this.getNickname()!=null){
            try {
                this.nicknameStr=new String(this.getNickname(),"UTF-8");
            } catch (UnsupportedEncodingException e) {
                e.printStackTrace();
            }
        }
        return nicknameStr;
    }

    public void setNicknameStr(String nicknameStr) {
        this.nicknameStr = nicknameStr;
    }

    public String getWxid() {
        return wxid;
    }

    public void setWxid(String wxid) {
        this.wxid = wxid;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getHeadimgurl() {
        return headimgurl;
    }

    public void setHeadimgurl(String headimgurl) {
        this.headimgurl = headimgurl;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
